{
 "cells": [
  {
   "cell_type": "markdown",
   "source": [
    "# 查看timm中的模型"
   ],
   "metadata": {
    "collapsed": false
   },
   "id": "3873d5173c717917"
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2023-11-29T09:30:30.172392Z",
     "start_time": "2023-11-29T09:30:28.056852Z"
    }
   },
   "outputs": [],
   "source": [
    "import timm"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1298 ['bat_resnext26ts.ch_in1k', 'beit_base_patch16_224.in22k_ft_in22k', 'beit_base_patch16_224.in22k_ft_in22k_in1k']\n"
     ]
    }
   ],
   "source": [
    "model_pretrain_list = timm.list_models(pretrained=True)\n",
    "print(len(model_pretrain_list), model_pretrain_list[:3])\n"
   ],
   "metadata": {
    "collapsed": false,
    "ExecuteTime": {
     "end_time": "2023-11-29T09:30:30.177902Z",
     "start_time": "2023-11-29T09:30:30.167076Z"
    }
   },
   "id": "fde99589e3632e50"
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0 []\n"
     ]
    }
   ],
   "source": [
    "model_resnet = timm.list_models('*stylegen*',pretrained=True)\n",
    "print(len(model_resnet), model_resnet[:])"
   ],
   "metadata": {
    "collapsed": false,
    "ExecuteTime": {
     "end_time": "2023-11-29T09:30:50.850106Z",
     "start_time": "2023-11-29T09:30:50.777571Z"
    }
   },
   "id": "29645f1a43e9ca19"
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "outputs": [],
   "source": [],
   "metadata": {
    "collapsed": false
   },
   "id": "4b8d572cd8da281e"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
